home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 12⁄1⁄89 / 0352-Re IControl ignoring-Jan90 < prev    next >
Encoding:
Text File  |  1990-01-12  |  956 b   |  31 lines  |  [TEXT/GEOL]

  1. Item    2163862                         7-Jan-90        09:58
  2.  
  3. From:   D1165                           Esha, David C Hands,PRT
  4.  
  5. To:     TERRAN                          Cyberex, Terran Van Wagner,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: IControl ignoring itsDoc…
  10.  
  11. Perhaps you could subclass the controls that need to reference a document and
  12. add an explicit reference field to your document. i.e.
  13.  
  14. PROCEDURE TMyControl.IRes(…);OVERRIDE;
  15. BEGIN
  16.     INHERITED IRes(…);
  17.     fMyDocument := TMyDocument(itsDocument);
  18. END;
  19.  
  20. This would avoid any problems that might arise by overriding TControl.IRes and
  21. passing itsDocument instead of NIL.  From what I can see the document's view
  22. list is used by MacApp for finding printable views.  I don't know what harm or
  23. good it would do to add controls to this list (and thereby have valid document
  24. references in the fDocument field).
  25.  
  26. hope this helps,
  27.  
  28. David Hands
  29. ESHA Research
  30.  
  31.